package com.dnjn.happiness.emo.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.dnjn.happiness.emo.domain.UserRecordTask;
import com.dnjn.happiness.emo.domain.vo.UserRecordTaskVO;

import java.util.List;

/**
 * 任务派发userRecordTaskService接口
 *
 * @author amber
 * @date 2024-01-12
 */
public interface IUserRecordTaskService extends IService<UserRecordTask> {

    Page<UserRecordTaskVO> listByAll(String userNameOrTaskContent, Long userId, Page page);

    Page<UserRecordTaskVO> listByAppraise(String userNameOrTaskContent, Long userId, Page page);


    Page<UserRecordTaskVO> listByMy(String taskStatus, String taskContent, Long userId, Page<Object> task_id);

    List<UserRecordTaskVO> selectX(Long taskId);

    UserRecordTaskVO selectByTaskId(Long taskId, Long userId);

    void timedOut(UserRecordTask domain) throws Exception;

    UserRecordTaskVO selectByTaskIdByUser(Long taskId, Long userId);


    Page<UserRecordTaskVO> listBrokenDown(String userNameOrTaskContent, Long userId, Page<Object> task_id);
}
